package main

import (
	"fmt"
	"io/ioutil"
)

func main() {
	str := "fghfjdghjg"
	error := ioutil.WriteFile("./1.txt", []byte(str), 0666)
	if error != nil {
		fmt.Printf("打开文件出错！", error)
	}

}
